


$(document).ready(function(){
    sessionStorage.setItem("token","");
});
$(".btn-primary").click(function(){
    var userName = $("#userName").val();
    var password = $("#password").val();
    $.DemoPost("/sysUser/login",{'userName':userName,'password':password,"classification":"t_manager"},
        function (data) {
            if (data.success){
                sessionStorage.setItem("token",data.obj);
                sessionStorage.setItem("path","http://127.0.0.1:8084/")
               // sessionStorage.setItem("path","http://139.129.213.125:8084")
                location.href="./student-xinxi.html";
            }else{
                layer.msg(data.msg);
            }
        },
        function (e) {
            layer.msg("登录失败");
        });
});